package com.training.java.core.junit;

import junit.framework.TestCase;

import org.junit.Test;

public class CarTest {
	
	
	@Test 
	
	public void start()
	
	{
		Car car = new Car(1234,"Toyota",true,100);
		TestCase.assertEquals(true,car.isStarted());
	}
	
	@Test
	public void stop()
	{
		Car car = new Car(1234,"Toyota",false,100);
		TestCase.assertEquals(false,car.isStarted());
	}
	
	@Test
	public void accelerate()
	
	{
		Car car = new Car(1234,"Toyota",false,100);
		TestCase.assertEquals(50,car.getCurrentSpeed());
	}
	

}
